<div class="uk-layui-form">
    <form class="layui-form uk-form" action="/admin/callcenter/media/save.html" enctype="multipart/form-data" data-toggle="ajax-form" data-inner="#callCenterContent">
    	<input type="hidden" name="hostid" value="${pbxHost.id!''}">
        <div class="layui-form-item">
            <label class="layui-form-label">名称：</label>
            <div class="layui-input-inline">
                <input type="text" name="name" required lay-verify="required" placeholder="请输入资源名称" autocomplete="off" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
            	<font color="red">*</font> 
            	资源名称
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">资源文件：</label>
            <div class="layui-input-inline layui-box layui-upload-button">
                <input type="file" name="mediafile" id="mediafile" lay-ext="wav" accept=".wav,.mp3" lay-type="audio" lay-title="请上传语音文件" class="layui-upload-file" onchange="$('#target').html($(this).val());">
                <span class="layui-upload-icon"><i class="layui-icon"></i>请上传语音文件</span>            
            </div>
            <div class="layui-form-mid layui-word-aux">
            	<font color="red">*</font> 
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <div class="layui-input-inline" id="target" style="width:60%;">
                            
            </div>
        </div>
        <div class="layui-form-button">
            <div class="layui-button-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>
